import request from '@/utils/request'

// 查询店铺订单配置列表
export function listConfigOrder(data) {
  return request({
    url: '/market/configOrder/configOrderList',
    method: 'post',
    data: data
  })
}

// 查询店铺订单配置详细
export function getConfigOrder(data) {
  return request({
    url: '/market/configOrder/getConfigOrder',
    method: 'post',
    data: data
  })
}

// 新增店铺订单配置
export function addConfigOrder(data) {
  return request({
    url: '/market/configOrder',
    method: 'post',
    data: data
  })
}

// 保存店铺订单配置
export function saveConfigOrder(data) {
  return request({
    url: '/market/configOrder/save',
    method: 'post',
    data: data
  })
}

// 修改店铺订单配置
export function updateConfigOrder(data) {
  return request({
    url: '/market/configOrder',
    method: 'put',
    data: data
  })
}

// 删除店铺订单配置
export function delConfigOrder(configOrderId) {
  return request({
    url: '/market/configOrder/' + configOrderId,
    method: 'delete'
  })
}

